import request from '@/utils/request'

// 摊销管理数据
export function queryPreviewV(distinguish, searchForm, limit, page) {
  console.log(searchForm.contractId, distinguish, limit, page)
  return request({
    url: '/previewVoucher/queryPreviewV',
    method: 'get',
    params: {
      distinguish,
      financialCode: searchForm.financialCode,
      companyName: searchForm.companyName,
      storeId: searchForm.storeId,
      storeName: searchForm.storeName,
      contractId: searchForm.contractId,
      voucherSerialNumber: searchForm.voucherSerialNumber,
      isSap: searchForm.isSap,
      limit: limit,
      page: page
    }
  })
}

// 预览凭证
export function queryOnePreviewVoucher(contractId) {
  console.log(contractId)
  return request({
    url: 'previewVoucher/queryOnePreviewVoucher/' + 2021042301100001,
    method: 'get'
  })
}
